import request from "@/utils/request";

// 待办列表
export function getTodoList(data) {
  return request({
    url: "/actTask/todo",
    method: "post",
    data,
  });
}
// 已办列表
export function getDoneList(data) {
  return request({
    url: "/actTask/complete",
    method: "post",
    data,
  });
}
// 发起列表
export function getMyselfList(data) {
  return request({
    url: "/actTask/myself",
    method: "post",
    data,
  });
}

//根据实例id获取表单数据
export function getFormData(query) {
  return request({
    url: "/actTask/fromData",
    method: "post",
    params: query,
  });
}

// 流程操作
export function doProcess(data) {
  return request({
    url: "/actTask/done",
    method: "post",
    data: data,
  });
}

// 流程操作
export function getTaskProcess(query) {
  return request({
    url: "/actTask/process",
    method: "post",
    params: query,
  });
}

//根据实例获取所有的流程任务
export function getAllTaskProcess(query) {
  return request({
    url: "/actTask/tasks",
    method: "post",
    params: query,
  });
}
